<?php

require_once('../functions/mainFns.php');
session_start();
do_html_header('个人','profile','profile');
$userid = @$_SESSION['userid'];
$headSrc = getuserheadsrc($userid);
$userdetail = getuserdetail($userid);
$nickname = $userdetail->nickname;

?>
<div class="HeadBar">
	<div class="headLeftBtn  center-block text-center" onclick="javascript:history.go(-1);">
		<div class="fa fa-arrow-left fa-lg backBtn" ></div>
	</div>
	<div class='headCenterInfo center-block text-center'>我的信息</div>
	<div class='headRightBtn center-block text-center setting'>
		<div class="fa fa-cog fa-lg" ></div>
	</div>
</div>

<a href='myPage.php'><div class='personal-profile'>
	<div class='userHead'>
		<img class='userHeadIcon' src='<?php echo $headSrc;?>'>
	</div>
	<div class='userInfo'>
		<div class='userNickName'><?php echo $nickname;?></div>
		<div class='userHint'>查看或编辑个人主页</div>
	</div>
</div></a>

<div class='myPosts'>
	<i class='fa fa-pencil fa-lg fa-fw'></i><span>我的帖子</span></div>
<div class='myOldItems'>
	<i class='fa fa-shopping-basket fa-lg fa-fw'></i><span>我的二手货</span></div>
<div class='myShops'>
	<i class=' fa fa-bank fa-lg fa-fw'></i><span>我的店铺</span></div>
<div class='myReplies'>
	<i class=' fa fa-commenting-o fa-lg fa-fw'></i><span>我的回复</span></div>
<div class='logout text-center' data-toggle="modal" data-target="#logoutModal">
	退出当前账号</div>
	
<!-- Modal -->
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">退出登录</h4>
      </div>
      <div class="modal-body">
        是否退出当前账号？
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" class="btn btn-danger logoutBtn">退出</button>
      </div>
    </div>
  </div>
</div>

<!--展示底部导航栏-->

<?php

displayIndexFooterBar();
displaySubmitMenu();

displayMist();
displayWait();
do_html_footer();

?>